#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int a;
    while (scanf("%d", &a) != EOF) {
        for (int b = 0; b < a; b++) 
        {
            for (int c = 0; c < a; c++)
            {
                if (b == c || b + c == a - 1) 
                {
                    printf("*");
                }
                else
                {
                    printf(" ");
                }
            }
            printf("\n");
        }
    }
    return 0;
}